package Java1_1;

public class Java7 {
	public static void main(String[] args) {
		int k = 2;
		int[] temp = new int[k];
		temp[0] = temp[k - 1] = 1;
		int rowCount = 12;
		for (int i = 1; i <= rowCount; i++) {
			int[] arr = new int[i];
			for (int j = 0; j < i; j++) {
				if (j == 0 || j == i - 1) {
					arr[j] = 1;

				} else {
					arr[j] = temp[j - 1] + temp[j];

				}
			}
			k++;
			temp = new int[k];
			for (int y = 0; y < arr.length; y++) {
				temp[y] = arr[y];
				System.out.print(arr[y] + " ");
			}
			System.out.println();
		}

	}

}
